<?php get_header(); ?>				
<div class="bg-content"> 
      
      <!--============================== content =================================-->
       <?php 
					 wp_reset_query();
					 //$cat=get_category_by_slug('courses');
					
					 $args = array(
					 	'showposts'=>6,
						'meta_key' => 'release',
						'orderby' => 'meta_value',
						'order' => 'DESC',
						meta_query => array(									       
							        array(
							            'key' => 'release',
							            'value' => gmdate('Y-m-d',time()+7*3600 + 90*24*3600),
							            'compare' => '<='
							        )
						        )
						);						
					 query_posts($args);
					 		$i=-1;			
					?>
     
    <div class="container">
    <h1>Phim mới nhất</h1>
          <div class="row">
       
        <div class="clear"></div>
        <ul class="thumbnails thumbnails-1 list-services">
        
        <?php while (have_posts()) : the_post(); $i++?>
              <li class="span4">
            <div class="thumbnail thumbnail-1"> 
            <a href="<?php echo get_permalink()?>">	
        	<?php echo the_post_thumbnail('large',array('title'=>get_the_title()) );?>
        	</a>
                  <section> <a href="<?php the_permalink()?>" class="link-1"><h2><?php the_title()?></h2></a>
                <p style="text-align: justify"><?php echo wp_trim_words(post_custom('description'),120)?></p>
              	<a href="<?php echo get_permalink()?>" class="btn btn-1">Chi tiết</a> 
              </section>
                </div>
                
               <div class="clear" style="height:20px;"></div> 
          </li>
          <?php endwhile?>
              
            </ul>
      </div>
       <div class="keyword"><span>Từ khoá:</span>
      
	      	
			<h2>xem phim cấp</h2>
			<h2>xem phim hd</h2>
			<h2>xem phim moi</h2>
			<h2>xem phim nhanh</h2>
			<h2>xem phim mới</h2>
			<h2>xem phim miễn phí</h2>
			<h2>xem phim mien phi</h2>
			<h2>xem phim moi nhat</h2>
			<h2>xem phim mới nhất</h2>
			<h2>xem phim nhanh nhất</h2>
			</div>
        </div>
  </div>
    					
<?php get_footer(); ?>